// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'ProcessDetailId',
        footer: "Foots",
        cnName: '生产工序明细',
        name: 'ProcessDetail',
        newTabEdit: false,
        url: "/ProcessDetail/",
        sortName: "ProcessDetailId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"ProductProcessId":"","ProcessCode":"","ProcessName":"","ProcessTypeId":"","IsLasted":"","UpProcessCode":"","DepartmentId":[],"DeviceId":"","ProductionGroupId":"","WorkerId":"","IsOutSource":"","SupplyId":"","ReportWorkTypeId":"","IsDispatch":"","IsChecked":""};
    const editFormOptions = [[{"title":"工序标识","required":true,"field":"ProductProcessId","type":"selectTable"},
                               {"title":"工序编码","required":true,"field":"ProcessCode"},
                               {"title":"工序名称","required":true,"field":"ProcessName"},
                               {"dataKey":"工序类型","data":[],"title":"工序类型","required":true,"field":"ProcessTypeId","type":"select"},
                               {"dataKey":"是否","data":[],"title":"是否末道工序","required":true,"field":"IsLasted","type":"select"},
                               {"title":"上道工序编码","field":"UpProcessCode","type":"text"},
                               {"dataKey":"部门级联","data":[],"title":"部门","required":true,"field":"DepartmentId","type":"cascader"},
                               {"dataKey":"设备档案下拉table","data":[],"title":"设备","field":"DeviceId","type":"select"},
                               {"dataKey":"班组信息","data":[],"title":"班组","field":"ProductionGroupId","type":"select"},
                               {"dataKey":"职员","data":[],"title":"作业人员","field":"WorkerId","type":"select"},
                               {"dataKey":"是否","data":[],"title":"是否委外","required":true,"field":"IsOutSource","type":"select"},
                               {"dataKey":"委外供应商档案","data":[],"title":"委外供应商","field":"SupplyId","type":"select"},
                               {"dataKey":"报工方式","data":[],"title":"报工方式","required":true,"field":"ReportWorkTypeId","type":"select"},
                               {"dataKey":"是否","data":[],"title":"是否派工","required":true,"field":"IsDispatch","type":"select"},
                               {"dataKey":"是否","data":[],"title":"是否质检","required":true,"field":"IsChecked","type":"select"}]];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'ProcessDetailId',title:'工序明细标识',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'TechnologicalProcessId',title:'生产工艺标识',type:'int',width:110,hidden:true,align:'left'},
                       {field:'ProductProcessId',title:'工序标识',type:'int',width:110,hidden:true,require:true,align:'left'},
                       {field:'ProcessSeq',title:'工序序号',type:'int',width:80,require:true,align:'left'},
                       {field:'ProcessCode',title:'工序编码',type:'string',width:110,require:true,align:'left'},
                       {field:'ProcessName',title:'工序名称',type:'string',width:110,require:true,align:'left'},
                       {field:'ProcessTypeId',title:'工序类型',type:'int',bind:{ key:'工序类型',data:[]},width:110,require:true,align:'left'},
                       {field:'IsLasted',title:'是否末道工序',type:'int',bind:{ key:'是否',data:[]},width:110,require:true,align:'left'},
                       {field:'UpProcessCode',title:'上道工序编码',type:'string',width:110,align:'left'},
                       {field:'DepartmentId',title:'部门',type:'guid',bind:{ key:'部门级联',data:[]},width:110,require:true,align:'left'},
                       {field:'DeviceId',title:'设备',type:'int',bind:{ key:'设备档案下拉table',data:[]},width:110,align:'left'},
                       {field:'ProductionGroupId',title:'班组',type:'int',bind:{ key:'班组信息',data:[]},width:110,align:'left'},
                       {field:'WorkerId',title:'作业人员',type:'int',bind:{ key:'职员',data:[]},width:110,align:'left'},
                       {field:'IsOutSource',title:'是否委外',type:'int',bind:{ key:'是否',data:[]},width:110,require:true,align:'left'},
                       {field:'SupplyId',title:'委外供应商',type:'int',bind:{ key:'委外供应商档案',data:[]},width:110,align:'left'},
                       {field:'ReportWorkTypeId',title:'报工方式',type:'int',bind:{ key:'报工方式',data:[]},width:110,require:true,align:'left'},
                       {field:'IsDispatch',title:'是否派工',type:'int',bind:{ key:'是否',data:[]},width:110,require:true,align:'left'},
                       {field:'IsChecked',title:'是否质检',type:'int',bind:{ key:'是否',data:[]},width:80,require:true,align:'left'},
                       {field:'WorkHourPrice',title:'计时单价',type:'decimal',width:110,hidden:true,require:true,align:'left'},
                       {field:'WorkQtyPrice',title:'计件单价',type:'decimal',width:110,hidden:true,require:true,align:'left'},
                       {field:'PriceTypeId',title:'计价方式',type:'int',width:80,hidden:true,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}